package com.qingmi.farmer.ui.order.grain;

import com.qingmi.farmer.R;
import com.qingmi.farmer.databinding.FragmentGrainOrderBinding;
import com.wjjun.base.ui.base.TabFragment;

/**
 * 卖出订单
 * Created by 67535 on 2018/4/28.
 */

public class GrainOrderFragment extends TabFragment<GrainOrderViewModel, FragmentGrainOrderBinding> {

    private GrainOrderPendingReportFragment grainOrderPendingReportFragment;
    private GrainOrderPendingConfirmFragment grainOrderPendingReceiveFragment;
    private GrainOrderCompletedFragment grainOrderCompletedFragment;


    @Override
    public int getLayoutId() {
        return R.layout.fragment_grain_order;
    }

    @Override
    protected GrainOrderViewModel initViewModel() {
        return new GrainOrderViewModel();
    }

    @Override
    public void initFragment() {
        grainOrderPendingReportFragment = new GrainOrderPendingReportFragment();
        grainOrderPendingReceiveFragment = new GrainOrderPendingConfirmFragment();
        grainOrderCompletedFragment = new GrainOrderCompletedFragment();

        addTab(getString(R.string.txt_pending_reported), grainOrderPendingReportFragment);
        addTab(getString(R.string.txt_pending_confirm), grainOrderPendingReceiveFragment);
        addTab(getString(R.string.txt_completed), grainOrderCompletedFragment);
    }

}
